// custom-navbar.js 
const { statusBarHeight } = wx.getWindowInfo();
Component({
  properties: {
    title: {
      type: String,
      value: ''
    }
  },
  data: {
    statusBarHeight: statusBarHeight,
  },
  methods: {
    goBack() {
      wx.switchTab({
        url: '/pages/home/home',
      })
    }
  },
});
